package xyz.wpxy.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.wpxy.domain.User;
import xyz.wpxy.mapper.UserMapper;

import java.util.List;

/**
 * @author 卫鹏
 * @Description
 * @createTime 2021年12月17日 22:17:00
 */
@RestController
public class UserController {

    @Autowired
    private UserMapper userMapper;

    @RequestMapping("/findAll")
    public List<User> findAll() {
        return userMapper.findAll();
    }

}
